Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add QR-Code for Share Links #2162

Merged
merged 1 commit into from
Jul 7, 2024

Conversation

Himmelxd
Copy link
Contributor

@Himmelxd Himmelxd commented May 11, 2024

Closes #1606
at least supposed to
image

@Himmelxd Himmelxd force-pushed the himmel/qrcode-sharelinks branch from 8aa9ca3 to 125b678 Compare May 11, 2024 20:28
src/components/QrModal.vue Outdated Show resolved Hide resolved
l10n/de.json Outdated Show resolved Hide resolved
l10n/de_DE.json Outdated Show resolved Hide resolved
src/components/QrModal.vue Outdated Show resolved Hide resolved
src/components/SidebarTabs/SharingSidebarTab.vue Outdated Show resolved Hide resolved
src/components/SidebarTabs/SharingSidebarTab.vue Outdated Show resolved Hide resolved
@Chartman123
Copy link
Collaborator

@Himmelxd thanks for this PR :) I added some comments on the code

@Chartman123 Chartman123 added this to the 4.3 milestone May 12, 2024
@Himmelxd Himmelxd force-pushed the himmel/qrcode-sharelinks branch from ec92802 to 72ebf01 Compare May 12, 2024 13:31
@Himmelxd Himmelxd requested a review from Chartman123 May 12, 2024 14:08
Copy link
Collaborator

@Chartman123 Chartman123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some more comments and in my opinion improvements. @susnux Please also have a look at it 🙂

src/components/SidebarTabs/SharingSidebarTab.vue Outdated Show resolved Hide resolved
src/components/SidebarTabs/SharingSidebarTab.vue Outdated Show resolved Hide resolved
src/components/SidebarTabs/SharingSidebarTab.vue Outdated Show resolved Hide resolved
src/components/SidebarTabs/SharingSidebarTab.vue Outdated Show resolved Hide resolved
@Chartman123 Chartman123 requested review from susnux and Koc May 12, 2024 19:11
@Himmelxd Himmelxd force-pushed the himmel/qrcode-sharelinks branch from 4936912 to acc8f51 Compare May 13, 2024 09:37
Copy link
Collaborator

@Chartman123 Chartman123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So except those two comments (that slipped through before), everything looks fine from my side. Could you please squash all commits into one?

src/components/SidebarTabs/SharingSidebarTab.vue Outdated Show resolved Hide resolved
src/components/SidebarTabs/SharingSidebarTab.vue Outdated Show resolved Hide resolved
@Himmelxd Himmelxd force-pushed the himmel/qrcode-sharelinks branch 3 times, most recently from 9d3afde to e71359c Compare May 13, 2024 10:54
@Chartman123 Chartman123 added 3. to review Waiting for reviews and removed 2. developing Work in progress labels May 13, 2024
Copy link
Collaborator

@Chartman123 Chartman123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine for me now :) @susnux please have another look

@Himmelxd
Copy link
Contributor Author

Thank you for your review and great comments :D

@Himmelxd Himmelxd force-pushed the himmel/qrcode-sharelinks branch 2 times, most recently from 9794111 to 41ab25d Compare May 16, 2024 14:54
@Himmelxd Himmelxd force-pushed the himmel/qrcode-sharelinks branch from d5ad0b1 to 8a4a227 Compare May 16, 2024 22:07
@Himmelxd Himmelxd requested a review from susnux May 17, 2024 13:30
Copy link
Collaborator

@Chartman123 Chartman123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small comments again... Please also do another rebase to squash all commits into one.

src/components/QRDialog.vue Outdated Show resolved Hide resolved
src/components/SidebarTabs/SharingSidebarTab.vue Outdated Show resolved Hide resolved
src/components/SidebarTabs/SharingSidebarTab.vue Outdated Show resolved Hide resolved
@Himmelxd Himmelxd force-pushed the himmel/qrcode-sharelinks branch 2 times, most recently from 5137239 to 2888875 Compare May 19, 2024 14:26
Copy link
Collaborator

@susnux susnux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the changes!

But I still have some changes 🙈
I meant to abstract the whole dialog as a component, so also move the NcDialog to the QRDialog component.

Some minor stuff like making it reactive (currently in your version the uri is only built on create).

src/components/QRDialog.vue Outdated Show resolved Hide resolved
src/components/QRDialog.vue Outdated Show resolved Hide resolved
src/components/QRDialog.vue Outdated Show resolved Hide resolved
src/components/SidebarTabs/SharingSidebarTab.vue Outdated Show resolved Hide resolved
src/components/SidebarTabs/SharingSidebarTab.vue Outdated Show resolved Hide resolved
src/components/SidebarTabs/SharingSidebarTab.vue Outdated Show resolved Hide resolved
src/components/SidebarTabs/SharingSidebarTab.vue Outdated Show resolved Hide resolved
@susnux
Copy link
Collaborator

susnux commented May 21, 2024

PS: My code suggestions are only to show what I meant, they are not tested and need some refactoring ;)

@Himmelxd Himmelxd force-pushed the himmel/qrcode-sharelinks branch 2 times, most recently from ddcb904 to dd1351a Compare June 16, 2024 22:39
@Himmelxd Himmelxd requested a review from susnux June 16, 2024 22:44
@Himmelxd Himmelxd force-pushed the himmel/qrcode-sharelinks branch 5 times, most recently from b57a36d to 87b7b30 Compare June 24, 2024 11:08
Copy link
Collaborator

@Chartman123 Chartman123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copyright/license information is missing in QRDialog.vue

src/components/QRDialog.vue Show resolved Hide resolved
@Himmelxd Himmelxd force-pushed the himmel/qrcode-sharelinks branch from 87b7b30 to a76bf27 Compare June 24, 2024 15:54
@Chartman123
Copy link
Collaborator

@Himmelxd to fix the remaining Lint/Prettier errors, you should run npx prettier . --write in your Forms directory. This will reformat all files according to the prettier rules. Instead of the . you can also specify the failing files and only reformat them.

Depending on your editor, there are also some extensions that allow formatting single files directly.

@Himmelxd Himmelxd force-pushed the himmel/qrcode-sharelinks branch 2 times, most recently from d207842 to e65c830 Compare June 25, 2024 13:04
Copy link
Collaborator

@Chartman123 Chartman123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything's fine from my side :)

@susnux can we merge this now?

@Himmelxd Himmelxd force-pushed the himmel/qrcode-sharelinks branch from e65c830 to a5eb28d Compare July 6, 2024 15:04
Signed-off-by: Felix Beichler <[email protected]>

resolve first comments

Signed-off-by: Felix Beichler <[email protected]>

move modal into tab vue

Signed-off-by: Felix Beichler <[email protected]>

remove spaces (again)

Signed-off-by: Felix Beichler <[email protected]>

refactor qr-variables to single object on this.

Signed-off-by: Felix Beichler <[email protected]>

resolve comments

Signed-off-by: Felix Beichler <[email protected]>

remove url label

Signed-off-by: Felix Beichler <[email protected]>

resolve comments

Signed-off-by: Felix Beichler <[email protected]>

parameterize alt text

Signed-off-by: Felix Beichler <[email protected]>

fix order of iconqr import

Signed-off-by: Felix Beichler <[email protected]>

change nc modal to dialog

Signed-off-by: Felix Beichler <[email protected]>

resolve Share {formTitle}

Signed-off-by: Felix Beichler <[email protected]>

separate qr dialog to component

Signed-off-by: Felix Beichler <[email protected]>

resolve comments

Signed-off-by: Felix Beichler <[email protected]>

Move dialog into component

Signed-off-by: Felix Beichler <[email protected]>

fix package-lock

Signed-off-by: Felix Beichler <[email protected]>

add copyright/license section

fix lint

Signed-off-by: Felix Beichler <[email protected]>

fix package.json
@Himmelxd Himmelxd force-pushed the himmel/qrcode-sharelinks branch from a5eb28d to fa6ecdb Compare July 6, 2024 23:12
@susnux
Copy link
Collaborator

susnux commented Jul 7, 2024

@Himmelxd Thank you very much, awesome work 🚀 Hope to see more contributions in the future!

@susnux susnux merged commit 67e08b7 into nextcloud:main Jul 7, 2024
44 checks passed
Copy link

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Form share with QR codes
3 participants